﻿namespace Duo1JHttpServer.Framework.Enum
{
    /// <summary>
    /// 请求类型
    /// </summary>
    public enum RequestType
    {
        /// <summary>
        /// Get请求
        /// </summary>
        Get,

        /// <summary>
        /// Post请求
        /// </summary>
        Post,

        /// <summary>
        /// 未知请求类型
        /// </summary>
        Unknown
    }

    /// <summary>
    /// 映射配置属性类型
    /// </summary>
    public enum MapperAttrType
    {
        /// <summary>
        /// 请求映射处理器类名
        /// </summary>
        Class,

        /// <summary>
        /// 请求Url
        /// </summary>
        Url,

        /// <summary>
        /// 映射处理器所在程序集名
        /// </summary>
        Assembly,

        /// <summary>
        /// 未知属性类型
        /// </summary>
        Unknown
    }

    /// <summary>
    /// 过滤器配置属性类型
    /// </summary>
    public enum FilterAttrType
    {
        /// <summary>
        /// 过滤器类名
        /// </summary>
        Class,

        /// <summary>
        /// 请求Url
        /// </summary>
        Url,

        /// <summary>
        /// 过滤器所在程序集名
        /// </summary>
        Assembly,

        /// <summary>
        /// 未知属性类型
        /// </summary>
        Unknown
    }

    /// <summary>
    /// 配置文件类型
    /// </summary>
    public enum ConfigType
    {
        /// <summary>
        /// 请求映射配置
        /// </summary>
        Mapper,

        /// <summary>
        /// 过滤器配置
        /// </summary>
        Filter,

        /// <summary>
        /// 未知配置类型
        /// </summary>
        Unknown
    }
}